<!--
@description 请输入界面描述
@author 潘志勇
-->
<template>
  <div id="app">
    <p>
      文档地址: <a href="https://elemefe.github.io/vue-amap/#/zh-cn/base/amap" target="_blank">https://elemefe.github.io/vue-amap/#/zh-cn/base/amap</a>
    </p>
    <h3 class="title">{{ msg }}</h3>
    <div class="amap-wrapper">
      <el-amap class="amap-box" :vid="'amap-vue'"></el-amap>
    </div>
  </div>
</template>

<script>
import VueAMap from 'vue-amap'

VueAMap.initAMapApiLoader({
  key: '59ec5ef06b273ce4796c72c130d7116c',
  plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PolyEditor', 'AMap.CircleEditor'],
  v: '1.4.4'
})
export default {
  name: 'AmapDemo01',
  components: { VueAMap },
  data () {
    return {
      msg: 'vue-amap向你问好！'
    }
  }
}
</script>

<style scoped>
  .amap-wrapper {
    width: 100%;
    height: 500px;
  }
</style>
